home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Windows Expert
/
Windows Expert.iso
/
windownt
/
perlnt.zip
/
t
/
comp
/
env.nt
< prev
next >
Wrap
Text File
|
1993-07-25
|
387b
|
23 lines
#
# Test that HOME and LOGDIR work for chdir
#
print "1..2\n";
chop ($wd = `cd`);
($up = $wd) =~ s,comp[\\/]$,,;
$ENV{'HOME'} = $up;
$ENV{'LOGDIR'} = $wd;
chdir;
chop ($here = `cd`);
if ($here eq $up) {print "ok 1\n";} else {print "not ok 1\n";}
undef($ENV{'HOME'});
chdir;
chop ($here = `cd`);
if ($here eq $wd) {print "ok 2\n";} else {print "not ok 2\n";}